# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=php-mt-seed
pkgver=4.0
pkgrel=1
groups=('blackarch' 'blackarch-cracker')
pkgdesc='PHP mt_rand() seed cracker.'
url='http://www.openwall.com/php_mt_seed/'
arch=('x86_64' 'aarch64')
license=('BSD')
depends=('php')
source=("http://www.openwall.com/php_mt_seed/php_mt_seed-$pkgver.tar.gz")
sha512sums=('b7986ef1fa49170ddd683c41af195402835b54c0af2074c24ac7529d5fe28bdadd4115b7d2c411950f8a04e91e9ea89cd024cc263ccc86797562b248152f9228')

build() {
  cd "php_mt_seed-$pkgver"

  make
}

package() {
  cd "php_mt_seed-$pkgver"

  install -Dm 755 php_mt_seed "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/$pkgname/" README
}

